************************
**voting machine fraud**
************************

*use "/Users/u6026357/Desktop/fraud_machine_raw1.dta"
clear
use "/Users/u6026357/Desktop/fraud_machine_raw2.dta"

***************************
**attention check 1 and 2**
***************************
tab att_chk1 // 99.53% passed
tab att_check2 // 99.95% passed 

************************
**coding conditions*****
************************
tab time_expd_pagesubmit  //432
tab time_expr_pagesubmit //426
tab time_impd_pagesubmit //405
tab time_impr_pagesubmit //433
gen expd = 0
replace expd =1 if time_expd_pagesubmit ~=.
gen expr = 0
replace expr =1 if time_expr_pagesubmit ~=.
gen impd = 0
replace impd =1 if time_impd_pagesubmit ~=.
gen impr = 0
replace impr =1 if time_impr_pagesubmit ~=.
gen control = 0
replace control = 1 if expd==0 & expr==0 & impd==0 & impr==0  //control == 415 total = 2111
gen conditionx = .
replace conditionx = 1 if impd==1
replace conditionx = 2 if expd==1
replace conditionx = 3 if impr==1
replace conditionx = 4 if expr==1
replace conditionx = 5 if control==1
rename expd exp_repsdidfraud
rename expr exp_demsdidfraud
rename impd imp_repsdidfraud
rename impr imp_demsdidfraud
**pool exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud
gen explicit = exp_repsdidfraud + exp_demsdidfraud 
gen implicit = imp_repsdidfraud + imp_demsdidfraud

************************
**check demos***********
************************
sum age // M = 35.27, sd = 12.72
tab race // 79.39% white 
tab edu // median = 4 year degree 
gen college = edu 
recode college 5=1 6=1 else=0

*check party splits
tab party // 701 reps, 731 dems, 629 Inds + 50 something else 
gen republican = party 
recode republican 1=1 else=0
gen democrat = party 
recode democrat 2=1 else=0
gen independent = party 
recode independent 3=1 4=1 else=0

tab support2020 // 51 % biden 33% trump 
gen trumpsupport = support2020
recode trumpsupport 1=1 else=0
gen bidensupport = support2020
recode bidensupport 3=1 else=0

************************
**coding DVS************
************************
sum closed_dv_1 closed_dv_2 closed_dv_5 closed_dv_6
alpha closed_dv_1 closed_dv_2 // .50
alpha closed_dv_5 closed_dv_6 // .59

sum conf1_1 conf1_2 conf2_1 elect_trust_9  secure_1 accurate_1 
sum democ_1 funds_4

alpha conf1_1 conf1_2 conf2_1 elect_trust_9  secure_1 accurate_1
pca conf1_1 conf1_2 conf2_1 elect_trust_9  secure_1 accurate_1
egen zconf1_1  = std(conf1_1 )
egen zconf1_2  = std(conf1_2 )
egen zconf2_1 = std(conf2_1)
egen zelect_trust_9 = std(elect_trust_9)
egen zsecure_1 = std(secure_1)
egen zaccurate_1 = std(accurate_1)

egen confidence_scale = rowmean (zconf1_1 zconf1_2 zconf2_1 zelect_trust_9  zsecure_1 zaccurate_1) 
alpha zconf1_1 zconf1_2 zconf2_1 zelect_trust_9  zsecure_1 zaccurate_1

************************
*coding moderators******
************************
*conspiracy scale
egen consp_scale = rowmean(consp_1 consp_2 consp_3 consp_4)
**therm order: whites (2), hisp(3), black(7), media (10), reps (11), dems (12), trump (13), biden (14) 
*media FT
gen media_ft = therms_10
*polint
recode polint 1=4 2=3 3=2 4=1
*pk
tab pk1
tab pk2
tab pk3
tab pk4
recode pk1 2=1 else=0
recode pk2 .=0
recode pk3 .=0
recode pk4 .=0
gen pk = pk1 + pk2 + pk3 + pk4
sum pk
*affpol
gen FT_dem = therms_12
gen FT_rep = therms_11
gen dem_less_rep = FT_dem - FT_rep
gen rep_less_dem = FT_rep - FT_dem
gen dem_less_rep_w1 = dem_less_rep /*Cross with party*/
gen rep_less_dem_w1 = rep_less_dem 
replace dem_less_rep = 0 if republican==1
replace rep_less_dem = 0 if democrat==1
gen affect_merged = dem_less_rep + rep_less_dem 
*blacks ft
gen black_ft = therms_7
*hispanics ft
gen hisp_ft = therms_3
sum consp_scale media_ft black_ft hisp_ft pk polint affect_merged

**gen graph vars
gen exp_imp_control = .
replace exp_imp_control = 1 if explicit ==1
replace exp_imp_control = 2 if implicit ==1
replace exp_imp_control = 3 if control==1
gen party3 = .
replace party3 =1 if democrat ==1
replace party3 =2 if republican ==1
replace party3 =3 if independent ==1
recode party3 2=3 3=2
label def party3a 1 "Democrat" 2 "Indepndent" 3 "Republican" 
label val party3 party3a

label variable confidence_scale "Confidence in elections" 
label def exp_imp_control 1 "Explicit cue" 2 "Implicit cue" 3 "Control"
label val exp_imp_control exp_imp_control

************************
****models**************
************************

********************************
**full sample - all treatments**
******************************** 

**republicans did voter fraud closed DVs
reg closed_dv_1 exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud republican democrat, robust
est store main1 
lincom exp_repsdidfraud - imp_repsdidfraud
lincom exp_demsdidfraud - imp_demsdidfraud

reg closed_dv_2 exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud republican democrat, robust  // 
est store main2 
lincom exp_repsdidfraud - imp_repsdidfraud
lincom exp_demsdidfraud - imp_demsdidfraud

**dems did voter fraud DVs
reg closed_dv_5 exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud republican democrat, robust // 
est store main3
lincom exp_repsdidfraud - imp_repsdidfraud
lincom exp_demsdidfraud - imp_demsdidfraud

reg closed_dv_6 exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud republican democrat, robust
est store main4
lincom exp_repsdidfraud - imp_repsdidfraud
lincom exp_demsdidfraud - imp_demsdidfraud

**Table C1: Cue effects on conspiracy beliefs (including all treatment conditions)
estout main1 main2 main3 main4 using main.tex, replace varwidth(25) collabels("") cells(b(star fmt(%9.4f)) se(par fmt(%9.4f))) stats(r2 N, fmt(%9.2f %9.0f) labels("R^2" "N")) starlevels(* 0.05 ** 0.01 *** 0.005) style(tex) 

**open-ended DV
reg open_code exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud republican democrat, robust
est store open_main
lincom exp_repsdidfraud - imp_repsdidfraud
lincom exp_demsdidfraud - imp_demsdidfraud

logit open_code exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud republican democrat, robust
lincom exp_repsdidfraud - imp_repsdidfraud
lincom exp_demsdidfraud - imp_demsdidfraud

**Table C2: Effects of conspiracy cues on open-ended measure of conspiracy ideation
estout open_main using open_main.tex, replace varwidth(25) collabels("") cells(b(star fmt(%9.4f)) se(par fmt(%9.4f))) stats(r2 N, fmt(%9.2f %9.0f) labels("R^2" "N")) starlevels(* 0.05 ** 0.01 *** 0.005) style(tex) 

**secondary DVs
reg confidence_scale exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud republican democrat, robust // 
est store conf1
lincom exp_repsdidfraud - imp_repsdidfraud 
lincom exp_demsdidfraud - imp_demsdidfraud

reg democ_1  exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud republican democrat, robust
est store democ
lincom exp_repsdidfraud - imp_repsdidfraud 
lincom exp_demsdidfraud - imp_demsdidfraud

reg funds_4 exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud republican democrat, robust // 
est store funds
lincom exp_repsdidfraud - imp_repsdidfraud 
lincom exp_demsdidfraud - imp_demsdidfraud

**table B3: Cue effects on secondary outcomes (spillover effects)
estout conf1 democ funds using spillover.tex, replace varwidth(25) collabels("") cells(b(star fmt(%9.4f)) se(par fmt(%9.4f))) stats(r2 N, fmt(%9.2f %9.0f) labels("R^2" "N")) starlevels(* 0.05 ** 0.01 *** 0.005) style(tex) 

****************************************************************
**dropping unrelated treatment conditions for targeted DVs******
****************************************************************

**Treatments main effects, only targeted conditions
**reps did fraud
reg closed_dv_1 exp_repsdidfraud democrat imp_repsdidfraud democrat   republican if exp_demsdidfraud != 1 & imp_demsdidfraud != 1, robust // 
lincom exp_repsdidfraud - imp_repsdidfraud 
est store repdid1_main
reg closed_dv_2 exp_repsdidfraud democrat imp_repsdidfraud   republican if exp_demsdidfraud != 1 & imp_demsdidfraud != 1, robust // yes exp 
lincom exp_repsdidfraud - imp_repsdidfraud
est store repdid2_main
**dems did fraud
reg closed_dv_5 exp_demsdidfraud republican imp_demsdidfraud   democrat if exp_repsdidfraud != 1 & imp_repsdidfraud != 1, robust // yes explicit 
lincom exp_demsdidfraud - imp_demsdidfraud
est store demdid1_main
reg closed_dv_6 exp_demsdidfraud republican imp_demsdidfraud   democrat if exp_repsdidfraud != 1 & imp_repsdidfraud != 1, robust // 
lincom exp_demsdidfraud - imp_demsdidfraud
est store demdid2_main

**table B1. Cue effects on targeted conspiracy beliefs**
estout repdid1_main repdid2_main demdid1_main demdid2_main using main_target.tex,  replace varwidth(25) collabels("") cells(b(star fmt(%9.4f)) se(par fmt(%9.4f))) stats(r2 N, fmt(%9.2f %9.0f) labels("R^2" "N")) starlevels(* 0.05 ** 0.01 *** 0.005) style(tex) 

**************************
**congeniality moderation*
**************************

**dems congenial closed vs
gen expdems_dem = exp_repsdidfraud*democrat
gen impdems_dem = imp_repsdidfraud*democrat
reg closed_dv_1 exp_repsdidfraud democrat imp_repsdidfraud democrat expdems_dem impdems_dem  republican if exp_demsdidfraud != 1 & imp_demsdidfraud != 1, robust // 
lincom expdems_dem-impdems_dem
est store repdid1
reg closed_dv_2 exp_repsdidfraud democrat imp_repsdidfraud expdems_dem impdems_dem   republican if exp_demsdidfraud != 1 & imp_demsdidfraud != 1, robust // yes exp 
lincom expdems_dem-impdems_dem
est store repdid2

**reps congenial closed dvs
gen expreps_rep = exp_demsdidfraud*republican
gen impreps_rep = imp_demsdidfraud*democrat
reg closed_dv_5 exp_demsdidfraud republican imp_demsdidfraud expreps_rep impreps_rep  democrat if exp_repsdidfraud != 1 & imp_repsdidfraud != 1, robust // yes explicit 
lincom expreps_rep - impreps_rep
est store demdid1
reg closed_dv_6 exp_demsdidfraud republican imp_demsdidfraud expreps_rep impreps_rep  democrat if exp_repsdidfraud != 1 & imp_repsdidfraud != 1, robust // 
lincom expreps_rep - impreps_rep
est store demdid2

**table B2: Cue effects on targeted conspiracy beliefs, by congeniality
estout repdid1  repdid2 demdid1  demdid2 using congenial_bel.tex, replace varwidth(25) collabels("") cells(b(star fmt(%9.4f)) se(par fmt(%9.4f))) stats(r2 N, fmt(%9.2f %9.0f) labels("R^2" "N")) starlevels(* 0.05 ** 0.01 *** 0.005) style(tex) 

**confidence - follow-up congeniality tests
reg confidence_scale exp_repsdidfraud##democrat imp_repsdidfraud##democrat  republican  exp_demsdidfraud##democrat  imp_demsdidfraud##democrat , robust // 
est store conf_cong_dem
reg confidence_scale exp_repsdidfraud##republican imp_repsdidfraud##republican  republican democrat  exp_demsdidfraud##republican  imp_demsdidfraud##republican , robust // 
est store conf_cong_rep

**table B4: Cue effects on confidence in elections, by congeniality
estout conf_cong_dem conf_cong_rep using congenial_conf.tex, replace varwidth(25) collabels("") cells(b(star fmt(%9.4f)) se(par fmt(%9.4f))) stats(r2 N, fmt(%9.2f %9.0f) labels("R^2" "N")) starlevels(* 0.05 ** 0.01 *** 0.005) style(tex) 

**cibar with all treatments 
cibar closed_dv_1, over1(conditionx) over2(party3) 
graph save exp_repsdid1.gph, replace
graph export "exp_repsdid1.pdf", replace
cibar closed_dv_2, over1(conditionx) over2(party3) 
graph save exp_repsdid2.gph, replace
graph export "exp_repsdid2.pdf", replace
grc1leg2 exp_repsdid1.gph exp_repsdid2.gph
cibar closed_dv_5, over1(conditionx) over2(party3) 
graph save demsdid1.gph, replace
graph export "demsdid1.pdf", replace
cibar closed_dv_6, over1(conditionx) over2(party3) 
graph save demsdid2.gph, replace
graph export "demsdid2.pdf", replace
grc1leg2 exp_repsdid1.gph exp_repsdid2.gph demsdid1.gph demsdid2.gph 

**cibar, drop non-targeted conditions
gen condition_noDtarget = conditionx
recode condition_noDtarget 3=. 4=. 
cibar closed_dv_1, over1(condition_noDtarget) over2(party3) 
graph save exp_repsdid1_nd.gph, replace
graph export "exp_repsdid1_nd.pdf", replace
cibar closed_dv_2, over1(condition_noDtarget) over2(party3) 
graph save exp_repsdid2_nd.gph, replace
graph export "exp_repsdid2_nd.pdf", replace
gen condition_noRtarget = conditionx
recode condition_noRtarget 1=. 2=. 
cibar closed_dv_5, over1(condition_noRtarget) over2(party3) 
graph save exp_demsdid1_nr.gph, replace
graph export "exp_demsdid1_nr.pdf", replace
cibar closed_dv_6, over1(condition_noRtarget) over2(party3) 
graph save exp_demsdid2_nr.gph, replace
graph export "exp_demsdid2_nr.pdf", replace

**Figure 1. Conspiracy beliefs by conspiracy cue and party. 
grc1leg2 exp_repsdid1_nd.gph exp_repsdid2_nd.gph exp_demsdid1_nr.gph exp_demsdid2_nr.gph

**Figure 2. Confidence in elections by party and conspiracy cue explicitness (pooled). 
cibar confidence_scale, over1(exp_imp_control) over2(party3)

**dv Means across conditions and party 
sum closed_dv_2 if democrat ==1 & exp_repsdidfraud==1
sum closed_dv_2 if democrat ==1 & control==1
sum closed_dv_2 if independent ==1 & exp_repsdidfraud==1
sum closed_dv_2 if independent ==1 & control==1
sum closed_dv_2 if republican ==1 & exp_repsdidfraud==1
sum closed_dv_2 if republican ==1 & control==1

sum closed_dv_2 if democrat ==1 & imp_repsdidfraud==1
sum closed_dv_2 if democrat ==1 & control==1
sum closed_dv_2 if independent ==1 & imp_repsdidfraud==1
sum closed_dv_2 if independent ==1 & control==1
sum closed_dv_2 if republican ==1 & imp_repsdidfraud==1
sum closed_dv_2 if republican ==1 & control==1

sum closed_dv_5 if democrat ==1 & exp_demsdidfraud==1
sum closed_dv_5 if democrat ==1 & control==1
sum closed_dv_5 if independent ==1 & exp_demsdidfraud==1
sum closed_dv_5 if independent ==1 & control==1
sum closed_dv_5 if republican ==1 & exp_demsdidfraud==1
sum closed_dv_5 if republican ==1 & control==1

sum closed_dv_5 if democrat ==1 & imp_demsdidfraud==1
sum closed_dv_5 if independent ==1 & imp_demsdidfraud==1
sum closed_dv_5 if republican ==1 & imp_demsdidfraud==1

sum closed_dv_5 if democrat ==1 & control==1
sum closed_dv_5 if independent ==1 & control==1
sum closed_dv_5 if republican ==1 & control==1

sum open_code if control ==1
sum open_code if imp_repsdidfraud==1
sum open_code if  imp_repsdidfraud==1
sum open_code if exp_demsdidfraud==1
sum open_code if exp_demsdidfraud==1

************************
**moderation tests******
************************
**main effects of moderators 
reg closed_dv_1  exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud republican democrat consp_scale media_ft black_ft hisp_ft pk polint affect_merged,  robust // 
est store rep1_corr
reg closed_dv_2  exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud republican democrat consp_scale media_ft black_ft hisp_ft pk polint affect_merged,  robust
est store rep2_corr
reg closed_dv_5  exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud republican democrat  consp_scale media_ft black_ft hisp_ft pk polint affect_merged,  robust
est store dem1_corr
reg closed_dv_6  exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud republican democrat consp_scale media_ft black_ft hisp_ft pk polint affect_merged,  robust
est store dem2_corr
reg confidence_scale exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud republican democrat consp_scale media_ft black_ft hisp_ft pk polint affect_merged,  robust
est store conf_corr
reg democ_1  exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud republican democrat consp_scale media_ft black_ft hisp_ft pk polint affect_merged,  robust
est store democ_corr
reg funds_4  exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud republican democrat consp_scale media_ft black_ft hisp_ft pk polint affect_merged,  robust
est store fund_corr

**table B5: Main effects of background characteristics on conspiracy beliefs and secondary outcomes
estout rep1_corr rep2_corr dem1_corr dem2_corr conf_corr democ_corr fund_corr using corr.tex, replace varwidth(25) collabels("") cells(b(star fmt(%9.4f)) se(par fmt(%9.4f))) stats(r2 N, fmt(%9.2f %9.0f) labels("R^2" "N")) starlevels(* 0.05 ** 0.01 *** 0.005) style(tex) 

**conspiracy 
gen consp_expreps = consp_scale*exp_repsdidfraud
gen consp_impreps = consp_scale*imp_repsdidfraud
gen consp_expdems = consp_scale*exp_demsdidfraud
gen consp_impdems = consp_scale*imp_demsdidfraud

reg closed_dv_1 consp_scale  exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud consp_expreps consp_impreps consp_expdems consp_impdems republican democrat,  robust // 
est store consp1
reg closed_dv_2  consp_scale exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud consp_expreps consp_impreps consp_expdems consp_impdems republican democrat,  robust // 
est store consp2
reg closed_dv_5  consp_scale exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud consp_expreps consp_impreps consp_expdems consp_impdems republican democrat,  robust // 
est store consp3
reg closed_dv_6 consp_scale  exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud consp_expreps consp_impreps consp_expdems consp_impdems republican democrat,  robust // 
est store consp4
reg confidence_scale consp_scale exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud consp_expreps consp_impreps consp_expdems consp_impdems republican democrat,  robust // 
est store consp5
reg democ_1 consp_scale  exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud consp_expreps consp_impreps consp_expdems consp_impdems republican democrat,  robust // 
est store consp6
reg funds_4 consp_scale exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud consp_expreps consp_impreps consp_expdems consp_impdems republican democrat,  robust // 
est store consp7

**Table B6: Effect of conspiracy cues, by conspiracy predisposition
estout consp1 consp2 consp3 consp4 consp5 consp6 consp7 using consp_x.tex, replace varwidth(25) collabels("") cells(b(star fmt(%9.4f)) se(par fmt(%9.4f))) stats(r2 N, fmt(%9.2f %9.0f) labels("R^2" "N")) starlevels(* 0.05 ** 0.01 *** 0.005) style(tex) 

**media 
gen media_expreps = media_ft*exp_repsdidfraud
gen media_impreps = media_ft*imp_repsdidfraud
gen media_expdems = media_ft*exp_demsdidfraud
gen media_impdems = media_ft*imp_demsdidfraud
xtile media_3 =  media_ft if media_ft!=., nq(3)

reg closed_dv_1 media_ft  exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud media_expreps media_impreps media_expdems media_impdems republican democrat,  robust // 
est store media1
reg closed_dv_2  media_ft exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud media_expreps media_impreps media_expdems media_impdems republican democrat,  robust // 
est store media2
reg closed_dv_5  media_ft exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud media_expreps media_impreps media_expdems media_impdems republican democrat,  robust // 
est store media3
reg closed_dv_6 media_ft  exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud media_expreps media_impreps media_expdems media_impdems republican democrat,  robust // sig
est store media4
reg confidence_scale media_ft exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud media_expreps media_impreps media_expdems media_impdems republican democrat,  robust // 
est store media5
reg democ_1 media_ft  exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud media_expreps media_impreps media_expdems media_impdems republican democrat,  robust // 
est store media6
reg funds_4 media_ft exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud media_expreps media_impreps media_expdems media_impdems republican democrat,  robust // 
est store media7

**Table B7: Effect of conspiracy cues, by feeling toward the media
estout media1 media2 media3 media4 media5 media6 media7 using media_x.tex, replace varwidth(25) collabels("") cells(b(star fmt(%9.4f)) se(par fmt(%9.4f))) stats(r2 N, fmt(%9.2f %9.0f) labels("R^2" "N")) starlevels(* 0.05 ** 0.01 *** 0.005) style(tex) 

**polint
gen pi_expreps = polint*exp_repsdidfraud
gen pi_impreps = polint*imp_repsdidfraud
gen pi_expdems = polint*exp_demsdidfraud
gen pi_impdems = polint*imp_demsdidfraud

reg closed_dv_1 polint  exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud pi_expreps pi_impreps pi_expdems pi_impdems republican democrat,  robust // 
est store pi1
reg closed_dv_2  polint  exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud pi_expreps pi_impreps pi_expdems pi_impdems republican democrat,  robust // 
est store pi2
reg closed_dv_5  polint  exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud pi_expreps pi_impreps pi_expdems pi_impdems republican democrat,  robust //
est store pi3  
reg closed_dv_6 polint  exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud pi_expreps pi_impreps pi_expdems pi_impdems republican democrat,  robust // 
est store pi4
reg confidence_scale polint  exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud pi_expreps pi_impreps pi_expdems pi_impdems republican democrat,  robust // 
est store pi5
reg democ_1   polint  exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud pi_expreps pi_impreps pi_expdems pi_impdems republican democrat,  robust // 
est store pi6
reg funds_4   polint  exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud pi_expreps pi_impreps pi_expdems pi_impdems republican democrat,  robust // 
est store pi7

**Table B8: Effect of conspiracy cues, by political interest
estout pi1 pi2 pi3 pi4 pi5 pi6 pi7 using pie_x.tex, replace varwidth(25) collabels("") cells(b(star fmt(%9.4f)) se(par fmt(%9.4f))) stats(r2 N, fmt(%9.2f %9.0f) labels("R^2" "N")) starlevels(* 0.05 ** 0.01 *** 0.005) style(tex) 

**pk
gen pk_expreps = pk*exp_repsdidfraud
gen pk_impreps = pk*imp_repsdidfraud
gen pk_expdems = pk*exp_demsdidfraud
gen pk_impdems = pk*imp_demsdidfraud

reg closed_dv_1 pk  exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud pk_expreps pk_impreps pk_expdems pk_impdems republican democrat,  robust // 
est store pk1
reg closed_dv_2  pk  exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud pk_expreps pk_impreps pk_expdems pk_impdems republican democrat,  robust // 
est store pk2
reg closed_dv_5  pk  exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud pk_expreps pk_impreps pk_expdems pk_impdems republican democrat,  robust // 
est store pk3 
reg closed_dv_6 pk  exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud pk_expreps pk_impreps pk_expdems pk_impdems republican democrat,  robust // 
est store pk4
reg confidence_scale pk  exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud pk_expreps pk_impreps pk_expdems pk_impdems republican democrat,  robust //  
est store pk5
reg democ_1   pk  exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud pk_expreps pk_impreps pk_expdems pk_impdems republican democrat,  robust // 
est store pk6
reg funds_4   pk  exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud pk_expreps pk_impreps pk_expdems pk_impdems republican democrat,  robust // 
est store pk7

**Table B9: Effect of conspiracy cues, by political knowledge
estout pk1 pk2 pk3 pk4 pk5 pk6 pk7 using pk_x.tex,  replace varwidth(25) collabels("") cells(b(star fmt(%9.4f)) se(par fmt(%9.4f))) stats(r2 N, fmt(%9.2f %9.0f) labels("R^2" "N")) starlevels(* 0.05 ** 0.01 *** 0.005) style(tex) 

**affect_merged
gen aff_expreps = affect_merged*exp_repsdidfraud
gen aff_impreps = affect_merged*imp_repsdidfraud
gen aff_expdems = affect_merged*exp_demsdidfraud
gen aff_impdems = affect_merged*imp_demsdidfraud

reg closed_dv_1 affect_merged  exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud aff_expreps aff_impreps aff_expdems aff_impdems republican democrat,  robust // 
est store aff1
reg closed_dv_2  affect_merged  exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud aff_expreps aff_impreps aff_expdems aff_impdems republican democrat,  robust // 
est store aff2
reg closed_dv_5  affect_merged  exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud aff_expreps aff_impreps aff_expdems aff_impdems republican democrat,  robust //  
est store aff3
reg closed_dv_6 affect_merged  exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud aff_expreps aff_impreps aff_expdems aff_impdems republican democrat,  robust // 
est store aff4
reg confidence_scale affect_merged  exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud aff_expreps aff_impreps aff_expdems aff_impdems republican democrat,  robust // 
est store aff5
reg democ_1 affect_merged  exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud aff_expreps aff_impreps aff_expdems aff_impdems republican democrat,  robust // 
est store aff6
reg funds_4 affect_merged  exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud aff_expreps aff_impreps aff_expdems aff_impdems republican democrat,  robust // 
est store aff7

**Table B10: Effect of conspiracy cues, by affective polarization
estout aff1 aff2 aff3 aff4 aff5 aff6 aff7 using aff_x.tex,  replace varwidth(25) collabels("") cells(b(star fmt(%9.4f)) se(par fmt(%9.4f))) stats(r2 N, fmt(%9.2f %9.0f) labels("R^2" "N")) starlevels(* 0.05 ** 0.01 *** 0.005) style(tex) 

**blacks ft
gen black_expreps = black_ft*exp_repsdidfraud
gen black_impreps =  black_ft*imp_repsdidfraud
gen black_expdems = black_ft*exp_demsdidfraud
gen black_impdems = black_ft*imp_demsdidfraud

reg closed_dv_1 black_ft  exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud black_expreps black_impreps black_expdems black_impdems republican democrat,  robust // 
est store bl1
reg closed_dv_2  black_ft  exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud black_expreps black_impreps black_expdems black_impdems republican democrat,  robust //  
est store bl2
reg closed_dv_5  black_ft  exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud black_expreps black_impreps black_expdems black_impdems republican democrat,  robust //  
est store bl3 
reg closed_dv_6 black_ft  exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud black_expreps black_impreps black_expdems black_impdems republican democrat,  robust // 
est store bl4
reg confidence_scale black_ft  exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud black_expreps black_impreps black_expdems black_impdems republican democrat,  robust // 
est store bl5
reg democ_1 black_ft  exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud black_expreps black_impreps black_expdems black_impdems republican democrat,  robust // 
est store bl6
reg funds_4 black_ft  exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud black_expreps black_impreps black_expdems black_impdems republican democrat,  robust // 
est store bl7

**Table B11: Effect of conspiracy cues, by feeling toward Blacks
estout bl1 bl2 bl3 bl4 bl5 bl6 bl7 using bl_x.tex,   replace varwidth(25) collabels("") cells(b(star fmt(%9.4f)) se(par fmt(%9.4f))) stats(r2 N, fmt(%9.2f %9.0f) labels("R^2" "N")) starlevels(* 0.05 ** 0.01 *** 0.005) style(tex) 

**hispanics ft
gen hisp_expreps = hisp_ft*exp_repsdidfraud
gen hisp_impreps =  hisp_ft*imp_repsdidfraud
gen hisp_expdems = hisp_ft*exp_demsdidfraud
gen hisp_impdems = hisp_ft*imp_demsdidfraud

reg closed_dv_1 hisp_ft  exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud hisp_expreps hisp_impreps hisp_expdems hisp_impdems republican democrat,  robust // 
est store h1
reg closed_dv_2  hisp_ft  exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud hisp_expreps hisp_impreps hisp_expdems hisp_impdems republican democrat,  robust //   
est store h2
reg closed_dv_5  hisp_ft  exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud hisp_expreps hisp_impreps hisp_expdems hisp_impdems republican democrat,  robust // 
est store h3 
reg closed_dv_6  hisp_ft  exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud hisp_expreps hisp_impreps hisp_expdems hisp_impdems republican democrat,  robust //  
est store h4
reg confidence_scale hisp_ft  exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud hisp_expreps hisp_impreps hisp_expdems hisp_impdems republican democrat,  robust // 
est store h5
reg democ_1 hisp_ft  exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud hisp_expreps hisp_impreps hisp_expdems hisp_impdems republican democrat,  robust //  
est store h6
reg funds_4 hisp_ft  exp_repsdidfraud imp_repsdidfraud exp_demsdidfraud imp_demsdidfraud hisp_expreps hisp_impreps hisp_expdems hisp_impdems republican democrat,  robust // 
est store h7

**Table B12: Effect of conspiracy cues, by feeling toward Hispanics
estout h1 h2 h3 h4 h5 h6 h7 using h_x.tex,   replace varwidth(25) collabels("") cells(b(star fmt(%9.4f)) se(par fmt(%9.4f))) stats(r2 N, fmt(%9.2f %9.0f) labels("R^2" "N")) starlevels(* 0.05 ** 0.01 *** 0.005) style(tex) 

*******************************
**pooled exp and imp conditions 
*******************************
reg confidence_scale  explicit implicit republican democrat,  robust 
est store pool_1
reg democ_1 explicit implicit republican democrat,  robust 
est store pool_2
reg funds_4 explicit implicit republican democrat,  robust 
est store pool_3

**Table C3: Cue effects on secondary outcomes (pooled by explicitness)
estout pool_1 pool_2 pool_3 using pool.tex,    replace varwidth(25) collabels("") cells(b(star fmt(%9.4f)) se(par fmt(%9.4f))) stats(r2 N, fmt(%9.2f %9.0f) labels("R^2" "N")) starlevels(* 0.05 ** 0.01 *** 0.005) style(tex)
